package cn.test;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author hanchao
 * @date 2017/9/4 16:39
 */
@SpringBootApplication
@Configuration
@ComponentScan("cn.test")
public class App {
    public static void main(String[] args) throws InterruptedException {
        new SpringApplicationBuilder().web(false).build().run(App.class,args);
        Thread.sleep(5000L);
    }
}
